
import Scanner from "./Scanner.js";
window.mustacge = {
  render(tremplateStr, data) {
    // 类的实例化
    let scanner = new Scanner(tremplateStr);
    //  测试scanUtil

    while (!scanner.eos()) {
      let word = scanner.scanUtil("{{");
      // 测试scan
      scanner.scan("{{");
      let word2 = scanner.scanUtil("}}");
      scanner.scan("}}");
    }
  }
}